package io.renren.modules.withdraw_cash.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.CommonUtils;
import io.renren.common.utils.enums.StatusEnums;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 佣金提现审核
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-19 17:41:35
 */
@Data
@TableName("v9_withdraw_cash")
public class V9WithdrawCashEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Integer wcId;
	/**
	 * 提现单号ni
	 */
	private String wcOrderSn;
	/**
	 * 用户ID
	 */
	private Integer userid;
	/**
	 * 会员码
	 */
	private String specialId;
	/**
	 * 真实姓名
	 */
	private String realname;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 提现金额
	 */
	private BigDecimal wcAmount;
	/**
	 * 账户类型
	 */
	private String wcType;
	/**
	 * 账户 ID
	 */
	private String wcAccount;
	/**
	 * 审核状态
	 */
	private String status;


	/**
	 * 申请日期
	 */
	private Integer wcAddtime;
	private transient String wcAddtimeStr;
	/**
	 * 审核日期
	 */
	private Integer wcAudittime;
	private transient String wcAudittimeStr;

	private transient String statusValue;

	public String getWcAddtimeStr() {
		return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(wcAddtime));
	}

	public void setWcAddtimeStr(String wcAddtimeStr) {
		this.wcAddtimeStr = wcAddtimeStr;
	}

	public String getWcAudittimeStr() {
		if (wcAudittime==null){
			return "";
		}
		return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(wcAudittime));
	}

	public void setWcAudittimeStr(String wcAudittimeStr) {
		this.wcAudittimeStr = wcAudittimeStr;
	}

	/**
	 * 审核人
	 */
	private String executant;

	public String getStatusValue() {
		return StatusEnums.getValueByType(status);
	}

	public void setStatusValue(String statusValue) {
		this.statusValue = statusValue;
	}
}
